<header node-name="header" class="<% if(code.statusCode!="NORMAL"){ %> invalid<% } %>">
	<% if(code.statusCode!="NORMAL"){ %>
	    <div class="flag">
	    	<div class="triangle"></div>
	    	<div class="text"><%= invalidCode[code.statusCode] %></div>
	    </div>
	<% } %>  
    <% if(canGiveFriend==1 && (code.giftStatus==0||code.giftStatus==2) && (code.statusCode=="NORMAL" || code.statusCode=="GIFTING") && code.isWeChat!=1){ %><div class="donation" node-name="donation" data-url="<%= code.giveApplyRouter %>"><i class="icon-donation"></i> 转赠 &gt;</div><% } %>	
	<div class="price"><% if(type==1){ %><em>&yen;</em><%= round(reduceCost) %><% }else{ %>兑<% } %>	</div>
	<div class="title"><%= title %></div>
	<div class="condition">
		<span>
			<% if(type==1){ %>
				<% if(money==0){ %>
					无使用门槛
				<% }else{ %>
					满<%= round(money) %>元可用
				<% } %>
			<% } %>
			<% if(goods==1){ %>
				全场通用
			<% }else{ %>
				指定商品
			<% } %>	
		</span>
	</div>
	<div class="valid-time">有效期:<%= date('Y.m.d',code.startTime).replace(/-/g,".") %>至<%= date('Y.m.d',code.endTime).replace(/-/g,".") %></div>
</header>
<div class="detail-wrap<% if(code.statusCode!="NORMAL"){ %> no-btns<% } %>">
	<div class="btns">
		<div class="frow">
			<% if(code.statusCode=="NORMAL"){ %>
				<% if(code.isWeChat!=1 && isWeChat==1){ %>
					<div class="joinbox"><button type="button" class="join-wechat" data-url="<%= code.syncApplyRouter %>">放入微信卡包</button></div>
				<% } %>	
				<% if(code.giftStatus<2){ %>
					<div class="soon-use"><button type="button" class="soon-use" data-href="<% if(goods==1 && type==1){ %>/index.php?r=index/index<% }else{ %><%= code.useRouter %><% } %>">立即使用</button></div>
				<% } %>	
			<% } %>	
		</div>
	</div>
	<article class="pbd">
		<h2>使用说明</h2>
		<div class="instruction">
			<%- explain -%>	
		</div>
	</article>
</div>
<div class="footer white-bg" node-name="footer">
	<div class="navmenu"><span data-href="/index.php?r=index/index">微信商城</span> <span class="separator">|</span>  <span class="followme">关注我们</span></div>
</div>
<% if(canGiveFriend==1){ %>
	<div class="donation-tip" node-name="transfer">
		<div class="tips-icon"><i class="icon-donation-tips"></i></div>
		<div class="tips-text">点击右上角即可转赠</div>
	</div>
<% } %>	








